using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SysFrame.Message;
using System.Reflection;

namespace SysFrame.BP
{
    /// <summary>
    /// system_10方法
    /// </summary>
    public class BLLsystem_10
    {
        public Isystem_10 interface_system_10;

        public BLLsystem_10()
        {
            object obj = BPBase.GetAchieve("SysFrame.BP","system_10");
            interface_system_10 = (Isystem_10)obj;
        }


        /// <summary>
        /// 得到system_10实体
        /// </summary>
        /// <param name="msq">条件</param>
        /// <returns></returns>
        public List<Mssystem_10> Getsystem_10MsByQuery(MsQuery msq)
        {
            return interface_system_10.Getsystem_10MsByQuery(msq);
        }

        /// <summary>
        /// 通过System_10_10得到实体
        /// </summary>
        /// <param name="System_10_10">ID</param>
        /// <returns>实体</returns>
        public Mssystem_10 Getsystem_10MsByKey(string System_10_10)
        {
            MsQuery msquery = new MsQuery();
            msquery.strquery += " and System_10_10='" + System_10_10 + "' ";
            List<Mssystem_10> lstData = Getsystem_10MsByQuery(msquery);
            return lstData[0];
        }

        /// <summary>
        ///  保存system_10信息
        /// </summary>
        /// <param name="ms">实体信息</param>
        /// <returns>消息</returns>
        public MsReturned Savesystem_10(Mssystem_10 ms)
        {
            return interface_system_10.Savesystem_10(ms);
        }

        /// <summary>
        /// 得到数据类型
        /// </summary>
        /// <param name="msquery">条件</param>
        /// <returns>数据类型</returns>
        public MsReturned Getsystem_10ByQuery(MsQuery msquery)
        {
            //加入权限 非admin 不能够查看 超级系统管理员

            return interface_system_10.Getsystem_10ByQuery(msquery);
        }

        /// <summary>
        /// 删除system_10
        /// </summary>
        /// <param name="msq">条件</param>
        /// <returns></returns>
        public MsReturned Deletesystem_10ByQuery(MsQuery msq)
        {
            return interface_system_10.Deletesystem_10ByQuery(msq);
        }
        /// <summary>
        /// 删除system_10
        /// </summary>
        /// <param name="msq">条件</param>
        /// <returns></returns>
        public MsReturned Deletesystem_10ByKey(string System_10_10)
        {
            MsQuery msquery = new MsQuery();
            
             if (System_10_10.IndexOf(",") > 0)
            {
                msquery.strquery += " and System_10_10 in (" + System_10_10 + ") ";
            }
            else
            {
                msquery.strquery += " and System_10_10='" + System_10_10 + "' ";
            }
            return interface_system_10.Deletesystem_10ByQuery(msquery);
        }
    }
}
